package com.iot08.admin.service;

import com.iot08.common.entity.app.ResetDevice;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @version 1.0
 * @Description:
 * @time: 2020/10/17 9:01
 * @author: Rock
 */
@Service
public class ResetDeviceService {

    @Resource(name = "appMongoTemplate")
    private MongoTemplate mongoTemplate;

    /**
     * @param id
     * @time: 2020/10/21 10:34
     * @author: Rock
     * @version 1.0
     */
    public ResetDevice getById(String id) {
        return mongoTemplate.findById(id, ResetDevice.class);
    }
}
